<template>
  <div class="ecmain">
    <myHeader id="progoo_header" ref="myHeader_title"></myHeader>
    <div class="ecmain-aside">
      <myMenu id="progoo_menu" ref="progoo_menu"></myMenu>
      <div class="ecmain-content">
        <router-view/> 
      </div>
    </div>
  </div>
</template>

<script>
import myHeader from './Aside/header'
import myMenu from './Aside/menu'
export default {
  name: 'ecmain',
  components: {
    myHeader,
    myMenu
  },
  mounted() {
    let service = localStorage.getItem("serviceKey");
    // 数据中心记住所选的设备
    if(service !== '20') {
      localStorage.setItem("dataCenterEquipmentId", '') 
    }
    this.$refs['myHeader_title'].changeService()
  },
  data () {
    return {

    }
  }
}
</script>

<style lang="less">
.ecmain {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  .ecmain-aside {
    flex: 1;
    width: 100%;
    display: flex;
    height: calc(100% - 80px);
    overflow: hidden;
    .ecmain-content {
      flex: 1;
      position: relative;
      width: calc(100% - 200px);
      height: 100%;
    }
  }
}
</style>
